//Implementing a Test Program (2.5, side 43)
import java.awt.Rectangle;

public class T2_5 {

	public static void main(String[] args){
		Rectangle box = new Rectangle(5, 10, 20, 30);
		
		//Flyt rektanglen
		box.translate(15, 25);
		
		//Skriv information om den flyttede kasse
		System.out.print("x: ");
		System.out.println(box.getX());
		System.out.println("Forventer 20");
	}
	
}
